package com.hzsai.service.Impl;

import com.hzsai.dao.UserDAO;
import com.hzsai.pojo.User;
import com.hzsai.service.UserValidatorService;

import org.springframework.stereotype.Service;

@Service
public class UserValidatorServiceImpl implements UserValidatorService{

    public boolean validateUserExist(User user, UserDAO dao) {
        System.out.println("新的接口：" + UserValidatorService.class.getSimpleName());
        int retFlag = dao.queryNumByUser(user);
        System.out.println(retFlag);
        return 0 == retFlag;
    }

}
